package ch6;

import java.util.Scanner;

public class Zxf3 {
    public static void main(String[] args) {
        int c = 0;
        int b = 10000;
        int a=1;
        for (; b >= 10&&a<=10; b++) {
            c = 0;
            for (int i = 2; i <= b; i++) {
                if (b % i == 0) {
                    c++;
                }
            }
            if (c <= 2) {
                System.out.println(b);
                a++;
            } //else {
               // System.out.println("D");
           // }
        }

    }
}


//}
